// by Xeno
#define THIS_FILE "fn_haschemlight.sqf"
#include <core_macros.h>


private ["_ischem","_chemar"];
_chemar = [];
{
	_ischem = getText(configFile/"CfgMagazines"/_x/"nameSound") == "Chemlight";
	if (_ischem && {!(_x in _chemar)}) then {
		_chemar set [count _chemar, _x];
	};
} forEach (magazines player);

_chemar